The Internet Foundation Classes (IFC) were a graphics library for Java originally developed by Netcode Corporation and first released by Netscape Corporation on December 16, 1996.
Contents |
On April 2, 1997, Sun Microsystems and Netscape announced their intention to combine IFC with other technologies to form the Java Foundation Classes[1].
Ultimately, Sun merged the IFC with other technologies under the name "Swing", adding the capability for a pluggable look and feel of the widgets.
Because its technology has been merged to constitute Swing and Java 2D, IFC is now no longer maintained.
Swing draw a lot of features from IFC:
However, Swing also improved IFC in a lot of ways:
This is the classic Hello world program in IFC:
import netscape.application.*; import netscape.util.*; public class HelloWorld extends Application { public void init() { super.init(); // Create a text field TextField textField = new TextField(100, 24, 128, 24); // Set the string to be displayed in the text field. textField.setStringValue("Hello World"); // Add the text field to the view hierarchy. mainRootView().addSubview(textField); } // This method allows HelloWorld to run as a stand alone application. public static void main(String args[]) { HelloWorld app = new HelloWorld (); ExternalWindow mainWindow = new ExternalWindow(); Size size; app.setMainRootView(mainWindow.rootView()); size = mainWindow.windowSizeForContentSize(320, 200); mainWindow.sizeTo(size.width, size.height); mainWindow.show(); app.run(); } }
To be compared with the equivalent Java Swing code:
import javax.swing.*; public class HelloWorld extends JFrame { public HelloWorld() { setDefaultCloseOperation(DISPOSE_ON_CLOSE); add(new JLabel("Hello, World!")); } public static void main(String[] args) { HelloWorld app = new HelloWorld(); app.pack(); app.setVisible(true); } }
The last places, where to download the IFC:
All find from
The web-archive where is the last place to find really all files:
Additional you can still find IFC here: